<?php
/**
 * Created by PhpStorm.
 * User: Janpoem
 * Date: 2015/3/11
 * Time: 6:58
 */

require __DIR__ . '/../../autoload.php';

require 'my-config.php';

use Agi\Config\Db;
use Agi\Config\Config;

$conf = Config::get();
$db = Db::get();

define('AUTH_KEY',         '...');
define('SECURE_AUTH_KEY',  '...');
define('LOGGED_IN_KEY',    '...');
define('NONCE_KEY',        '...');
define('AUTH_SALT',        '...');
define('SECURE_AUTH_SALT', '...');
define('LOGGED_IN_SALT',   '...');
define('NONCE_SALT',       '...');

define('WPLANG', $conf->lang, true);
define('WP_POST_REVISIONS', $conf->disableRevisions, true);
define('AUTOSAVE_INTERVAL', $conf->autosaveInterval, true);

// 数据库配置
define('WP_DEBUG', true);
define('DB_NAME', $db->db);
define('DB_USER', $db->username);
define('DB_PASSWORD', $db->password);
define('DB_HOST', $db->host);
define('DB_CHARSET', $db->charset);
define('DB_COLLATE', '');
$table_prefix  = $db->prefix;

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
//require_once(ABSPATH . 'wp-settings.php');
